package com.sk.bilibili.model.diy.bottomDialog;

import android.content.Intent;

import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.utils.ClipboardUtils;
import com.sk.bilibili.utils.IntentUtils;
import com.sk.bilibili.view.diy.bottomDialog.SpaceBottomDialog;

public class SpaceModel extends BaseModel<SpaceBottomDialog> {

    public void copyUrl(Integer memberId) {
        String content=createContent(memberId);
        ClipboardUtils.setText(view.getContext(),content);
    }

    private String createContent(Integer memberId) {
        return "MemberId"+memberId;
    }

    public void moreShare(Integer memberId) {
        String content = createContent(memberId);
        Intent intent = IntentUtils.createShareIntent(content);
        view.getContext().startActivity(intent);
    }

}